﻿@using Sausage.Web.Domain
@using Sausage.Web.DataModel
@model Sausage.Web.DataModel.ProjectQuantity
@{
    ViewBag.Title = string.Format("项目工程量详细信息（{0}）", Model.Project.ProjectCode);
    Layout = "~/Views/Shared/MainLayout.cshtml";
}
<h2>@ViewBag.Title</h2>
<br />
<div class="form-box">
    <table class="TableDetail">
        <tr>
            <th>
                所属单位
            </th>
            <td>
                @Html.DisplayFor(model => model.Organization.OrganizationName)
            </td>
        </tr>
        <tr>
            <th>
                项目名称
            </th>
            <td>
                @Html.ActionLink(Model.Project.ProjectName, "ViewProject", "Project", new { projectID = @Model.ProjectID }, new { @target = "_blank" })
            </td>
        </tr>
        <tr>
            <th>
                项目编号
            </th>
            <td>
                @Html.ActionLink(Model.Project.ProjectCode, "ViewProject", "Project", new { projectID = @Model.ProjectID }, new { @target = "_blank" })
            </td>
        </tr>
        <tr>
            <th>
                分项工程
            </th>
            <td>
                @Html.DisplayFor(model => model.Construction.ConstructionName)
            </td>
        </tr>
        <tr>
            <th>
                工程量
            </th>
            <td>
                @string.Format("{0:#,##0.00}", Model.Quantity)&nbsp;&nbsp;@Html.DisplayFor(model => model.Construction.Unit)
            </td>
        </tr>
        <tr>
            <th>
                单价
            </th>
            <td>
                @string.Format("{0:#,##0.000}", Model.Price)
            </td>
        </tr>
        <tr>
            <th>
                小计
            </th>
            <td>
                @string.Format("{0:#,##0.00}", Model.Amount)
            </td>
        </tr>
        <tr>
            <th>
                施工日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.ApplicationDate)
            </td>
        </tr>
        <tr>
            <th>
                填报人
            </th>
            <td>
                @Html.DisplayFor(model => model.Applicant)
            </td>
        </tr>
        <tr>
            <th>
                填报日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.CreateDate)
            </td>
        </tr>
        <tr>
            <th>
                审核人
            </th>
            <td>
                @Html.DisplayFor(model => model.Auditor)
            </td>
        </tr>
        <tr>
            <th>
                审核日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.AuditedDate)
            </td>
        </tr>
        <tr>
            <th>
                签审人
            </th>
            <td>
                @Html.DisplayFor(model => model.Signer)
            </td>
        </tr>
        <tr>
            <th>
                签审日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.SignedDate)
            </td>
        </tr>
        <tr>
            <th>
                批准人
            </th>
            <td>
                @Html.DisplayFor(model => model.Approver)
            </td>
        </tr>
        <tr>
            <th>
                批准日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.ApprovedDate)
            </td>
        </tr>
        <tr>
            <th>
                备注
            </th>
            <td>
                @Html.DisplayFor(model => model.Memo)
            </td>
        </tr>
        <tr>
            <th>
                相关内容
            </th>
            <td>
                <ul class="QuickList">
                    <li>@Html.ActionLink("工程人工", "ViewQuantityLabour", "ProjectLabour", new { quantityID = @Model.QuantityID }, new { @target = "_blank" })</li>
                    <li>@Html.ActionLink("工程材料", "ViewQuantityMaterial", "ProjectMaterial", new { quantityID = @Model.QuantityID }, new { @target = "_blank" })</li>
                    <li>@Html.ActionLink("工程机械", "ViewQuantityMachine", "ProjectMachine", new { quantityID = @Model.QuantityID }, new { @target = "_blank" })</li>
                    <li>@Html.ActionLink("工程日志", "ViewQuantityJournal", "ProjectJournal", new { quantityID = @Model.QuantityID }, new { @target = "_blank" })</li>
                </ul>
            </td>
        </tr>
    </table>
</div>
<br />
